﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace Worms3003
{
    public class Weapons
    {
        #region atributos
        Texture2D textura;
        public Vector2 vetor;
        public float rotacao;
        public SpriteEffects spriteEffects;
        #endregion

        public Texture2D Texture
        {
            get { return this.textura; }
            set { this.textura = value; }
        }

        public Vector2 vector
        {
            get { return this.vetor; }
            set { this.vetor = value; }
        }

        public Weapons(Texture2D texture, Vector2 position, SpriteEffects effects)
        {
            #region construtor da classe
            textura = texture;
            vetor = position;
            spriteEffects = effects;
            #endregion
        }

        public void Update()
        {

        }

        public void Draw(SpriteBatch spriteBatch)
        {
            //seleciona o ponto que deseja fazer a rotação
            spriteBatch.Draw(textura, vetor, null, Color.White, rotacao, new Vector2(Texture.Width / 2, Texture.Height / 2), 1f, spriteEffects, 0f);
        }
    }
}
